package com.sunrise.estoque.repositorio;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sunrise.estoque.repositorio.iface.HistoricoVendaDao;
import com.sunrise.generico.acesso.DaoNegocioService;
import com.sunrise.generico.entidade.HistoricoVenda;

@Repository
public class HistoricoVendaDaoImpl extends DaoNegocioService<HistoricoVenda> implements HistoricoVendaDao {

	public List<HistoricoVenda> listarOrdenado() {
		return listar(HistoricoVenda.class);
	}

	public HistoricoVenda getById(Long id) {
		return getById(id, HistoricoVenda.class);
	}

}
